package com.myapp.struts.modele;


import java.util.ArrayList;
import java.util.Date;
import java.util.Hashtable;
import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author jackson
 */
public class Etudiant {

    private int netudiant;
    private String nom;
    private String prenom;
    private String telephone;
    private String adresse;
    private Date naissance;
    private String email;
    private String password;
    private Promotion promotion;
    private List<Matiere> matieres;
    private Hashtable<Matiere, EstAbsent> absences;
    private String etat;

    public Etudiant() {
    }

    public Etudiant(int netudiant, String nom, String prenom, String telephone, String adresse, Date naissance, String email, String password, Promotion promotion, List<Matiere> matieres, Hashtable<Matiere, EstAbsent> absences) {
        this.netudiant = netudiant;
        this.nom = nom;
        this.prenom = prenom;
        this.telephone = telephone;
        this.adresse = adresse;
        this.naissance = naissance;
        this.email = email;
        this.password = password;
        this.promotion = promotion;
        this.matieres = new ArrayList<Matiere>();
        this.absences = new Hashtable<Matiere, EstAbsent>();
        this.etat = "P";        
    }

    public int getNetudiant() {
        return netudiant;
    }

    public void setNetudiant(int netudiant) {
        this.netudiant = netudiant;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public String getPrenom() {
        return prenom;
    }

    public void setPrenom(String prenom) {
        this.prenom = prenom;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAdresse() {
        return adresse;
    }

    public void setAdresse(String adresse) {
        this.adresse = adresse;
    }

    public Date getNaissance() {
        return naissance;
    }

    public void setNaissance(Date naissance) {
        this.naissance = naissance;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Promotion getPromotion() {
        return promotion;
    }

    public void setPromotion(Promotion promotion) {
        this.promotion = promotion;
    }

    public List<Matiere> getMatieres() {
        return matieres;
    }

    public void setMatieres(List<Matiere> matieres) {
        this.matieres = matieres;
    }

    public Hashtable<Matiere, EstAbsent> getAbsences() {
        return absences;
    }

    public void setAbsences(Hashtable<Matiere, EstAbsent> absences) {
        this.absences = absences;
    }

    public String getEtat() {
        return etat;
    }

    public void setEtat(String etat) {
        this.etat = etat;
    }
    
    

}
